import { Route, Link } from "react-router-dom"
import Test1 from "./Test1"
import Test2 from "./Test2"
export default function Detail(props) {
  console.log(props)
  return (
    <div>
      <Link to="/detail/test1">test1</Link>
      <br />
      <Link to="/detail/test2">test2</Link>
      <br />
      Detail页面
      <Route path="/detail/test1" component={Test1}></Route>
      <Route path="/detail/test2" component={Test2}></Route>
    </div>
  )
}
